How to add a string into an dictionary in Ansible with some conditions